	package commande;
	
	import java.io.Serializable;
	
	public class Article implements Serializable {
		
		private int reference;
		private String libelle;
		private double prixUnitaire;
	
		public Article()
		{
			this.reference = -1;
			this.libelle = "";
			this.prixUnitaire = 0.0;
		}
	
		public Article(int reference, String libelle, double prixUnitaire) {
			this.reference = reference;
			this.libelle = libelle;
			this.prixUnitaire = prixUnitaire;
		}
	
		public String getLibelle() {
			return libelle;
		}
	
		public void setLibelle(String libelle) {
			this.libelle = libelle;
		}
	
		public double getPrixUnitaire() {
			return prixUnitaire;
		}
	
		public void setPrixUnitaire(double prixUnitaire) {
			this.prixUnitaire = prixUnitaire;
		}
	
		public int getReference() {
			return reference;
		}
	
		public void setReference(int reference) {
			this.reference = reference;
		}
	
		public String toString() {
			return "["+reference+";"+libelle+";"+prixUnitaire+"]";
		}
	
		public boolean equals(Object arg0) {
			if (arg0 instanceof Article) {
				Article article = (Article) arg0;
				return this.reference == article.reference;
			}
			else
				return false;
		}
	
		/**
		 * 
		 */
		private static final long serialVersionUID = 5146779646683449056L;
	
		
	}
